//
//  StringTool.h
//  mengbutou
//
//  Created by Jiafei Wei on 16/7/6.
//  Copyright © 2016年 Jiafei Wei. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface StringTool : NSObject
+(BOOL) isEmpty:(NSString*)text;
+(BOOL) boolValue:(NSDictionary*)dict forKey:(id)key;
+(float) floatValue:(NSDictionary*)dict forKey:(id)key;
+(NSInteger) intValue:(NSDictionary*)dict forKey:(id)key;
+(NSArray*) arrayValue:(NSDictionary*)dict forKey:(id)key;
+(id) noneNullValue:(NSDictionary*)dict forKey:(id)key;
+(NSDictionary*) dictionaryValue:(NSDictionary*)dict forKey:(id)key;
+(BOOL) stringEquals:(NSString*)str1 to:(NSString*)str2;
+(BOOL) caseEquals:(NSString*)str1 to:(NSString*)str2;
+(NSString*) refineUrl:(NSString*)url;
+(BOOL) isURLString:(NSString*)text;
+(BOOL) startWith:(NSString*)prefix forString:(NSString*)text;
+(BOOL) endWith:(NSString*)suffix forString:(NSString*)text;
+(NSDate *)stringToDate:(NSString *)string withFormat:(NSString*)fmt;
+(NSString*)dateToString:(NSDate*)date withFormat:(NSString*)fmt;
+(BOOL)booleanToBool:(id)bobj;
+(NSString*) getUUIDString;
+(NSString *) stringDeleteString:(NSString *)str;
@end
